package com.xx.service.Impl;

import com.xx.dao.OrderDao;
import com.xx.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    @Qualifier(value = "orderDao")//指定获取的对象
    OrderDao orderDao;

    @Autowired
    @Qualifier(value = "orderNewDao")//指定获取的对象
    OrderDao orderNewDao;

    @Override
    public void showOrderDetail() {
        orderDao.showOrderDetail();
    }

    @Override
    public void showOrderNewDetail() {
        orderNewDao.showOrderDetail();
    }
}
